package com.qf.smsplatform.interfaces.exception;


import com.qf.smsplatform.common.enums.InterfaceExceptionEnums;
import lombok.Getter;

import java.util.Set;

@Getter
public class SmsException extends   RuntimeException {

    private  Integer code;

    private Set<String> errorMpbile;

    public SmsException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public SmsException(InterfaceExceptionEnums enums) {
        super(enums.getMsg());
        this.code = enums.getCode();
    }
    public SmsException(InterfaceExceptionEnums enums,Set<String> errorMpbile) {
        super(enums.getMsg());
        this.code = enums.getCode();
        this.errorMpbile = errorMpbile;
    }
}
